package com.itheima.pojo;

import java.io.Serializable;
import java.util.List;

public class Category implements Serializable {
    private Integer id;                      //分类ID
    private String name;                     //分类名称
    private Integer goods_num;               //商品数量
    private String is_show;                  //是否显示
    private String is_menu;                  //是否导航
    private Integer seq;                     //排序
    private Integer parent_id;               //上级ID
    private Integer template_id;             //模板ID

    private List<Template> templates;
    private List<Brand> brands;
    private List<Category> categories;

    public Category() {
    }

    public Category(Integer id, String name, Integer goods_num, String is_show, String is_menu, Integer seq, Integer parent_id, Integer template_id) {
        this.id = id;
        this.name = name;
        this.goods_num = goods_num;
        this.is_show = is_show;
        this.is_menu = is_menu;
        this.seq = seq;
        this.parent_id = parent_id;
        this.template_id = template_id;
    }

    public Category(Integer id, String name, Integer goods_num, String is_show, String is_menu, Integer seq, Integer parent_id, Integer template_id, List<Template> templates, List<Brand> brands) {
        this.id = id;
        this.name = name;
        this.goods_num = goods_num;
        this.is_show = is_show;
        this.is_menu = is_menu;
        this.seq = seq;
        this.parent_id = parent_id;
        this.template_id = template_id;
        this.templates = templates;
        this.brands = brands;
    }

    public Category(Integer id, String name, Integer goods_num, String is_show, String is_menu, Integer seq, Integer parent_id, Integer template_id, List<Category> categories) {
        this.id = id;
        this.name = name;
        this.goods_num = goods_num;
        this.is_show = is_show;
        this.is_menu = is_menu;
        this.seq = seq;
        this.parent_id = parent_id;
        this.template_id = template_id;
        this.categories = categories;
    }

    public Category(Integer id, String name, Integer goods_num, String is_show, String is_menu, Integer seq, Integer parent_id, Integer template_id, List<Template> templates, List<Brand> brands, List<Category> categories) {
        this.id = id;
        this.name = name;
        this.goods_num = goods_num;
        this.is_show = is_show;
        this.is_menu = is_menu;
        this.seq = seq;
        this.parent_id = parent_id;
        this.template_id = template_id;
        this.templates = templates;
        this.brands = brands;
        this.categories = categories;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getGoods_num() {
        return goods_num;
    }

    public void setGoods_num(Integer goods_num) {
        this.goods_num = goods_num;
    }

    public String getIs_show() {
        return is_show;
    }

    public void setIs_show(String is_show) {
        this.is_show = is_show;
    }

    public String getIs_menu() {
        return is_menu;
    }

    public void setIs_menu(String is_menu) {
        this.is_menu = is_menu;
    }

    public Integer getSeq() {
        return seq;
    }

    public void setSeq(Integer seq) {
        this.seq = seq;
    }

    public Integer getParent_id() {
        return parent_id;
    }

    public void setParent_id(Integer parent_id) {
        this.parent_id = parent_id;
    }

    public Integer getTemplate_id() {
        return template_id;
    }

    public void setTemplate_id(Integer template_id) {
        this.template_id = template_id;
    }

    public List<Template> getTemplates() {
        return templates;
    }

    public void setTemplates(List<Template> templates) {
        this.templates = templates;
    }

    public List<Brand> getBrands() {
        return brands;
    }

    public void setBrands(List<Brand> brands) {
        this.brands = brands;
    }

    public List<Category> getCategories() {
        return categories;
    }

    public void setCategories(List<Category> categories) {
        this.categories = categories;
    }

    @Override
    public String toString() {
        return "Category{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", goods_num=" + goods_num +
                ", is_show='" + is_show + '\'' +
                ", is_menu='" + is_menu + '\'' +
                ", seq=" + seq +
                ", parent_id=" + parent_id +
                ", template_id=" + template_id +
                ", templates=" + templates +
                ", brands=" + brands +
                ", categories=" + categories +
                '}';
    }
}
